package com.nifostasky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nifostasky.entity.SysCapcha;

import java.awt.image.BufferedImage;

/**
 * (SysCapcha)表服务接口
 *
 * @author makejava
 * @since 2021-09-24 10:03:18
 */
public interface SysCapchaService extends IService<SysCapcha> {

    /**
     * 生成验证码所需的图片
     */
    BufferedImage getCaptcha(String type,String uuid);


    /**
     * 验证验证码是否正确
     */
    Boolean validCaptcha(String uuid, String code);

}
